<template>
  <div class="demo">
    <div class="demo-title">大小</div>
    <div class="demo-content">
      <Cascader v-model:value="value" placeholder="Please select" size="large" :options="options" />
      <br />
      <br />
      <Cascader v-model:value="value" placeholder="Please select" :options="options" />
      <br />
      <br />
      <Cascader v-model:value="value" placeholder="Please select" size="small" :options="options" />
      <br />
      <br />
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import Cascader from '@sscd/cascader';
  import type { CascaderProps } from '@sscd/cascader';
  const value = ref<string[]>([]);
  const options: CascaderProps['options'] = [
    {
      value: 'zhejiang',
      label: 'Zhejiang',
      children: [
        {
          value: 'hangzhou',
          label: 'Hangzhou',
          children: [{ value: 'xihu', label: 'West Lake' }],
        },
      ],
    },
    {
      value: 'jiangsu',
      label: 'Jiangsu',
      children: [
        {
          value: 'nanjing',
          label: 'Nanjing',
          children: [{ value: 'zhonghuamen', label: 'Zhong Hua Men' }],
        },
      ],
    },
  ];
</script>
